global sumar

extern printf

section .data
formato: DB '%d',10,0

section .text

sumar:
PUSH RBP
MOV RBP, RSP
SUB RDI, RSI
ADD RDI, RDX
SUB RDI, RCX
ADD RDI, R8
SUB RDI, R9
ADD RDI, [RSP+16]
SUB RDI, [RSP+24]

mov rsi, rdi
mov rdi, formato
CALL printf

POP RBP
ret
